import request from '@/utils/request'


const api_name = `/user/user`

export default{
  //获取所有用户
  getPageList(query){
    return request({
      url:`${api_name}/listPage`,
      method:'post',
      data:query
    })
  },
  //禁用用户
  offById(id){
    return request({
      url:`${api_name}/offById/${id}`,
      method:'get'
    })
  },
  //解除禁用
  relieve(id){
    return request({
      url:`${api_name}/relieve/${id}`,
      method:'get'
    })
  }
}
